package day04;
import java.util.Scanner;
public class ScannerDemo {
    public static void main(String[] args) {
        /*
        package java.util;
        class Scanner{
            Scanner(InputStream s){...}
            int nextInt(){...}
            double nextDouble(){...}
        }

        import java.util.Scanner;
        Scanner scan = new Sanner(System.in);
        int age = scan.nextInt();
         */
        /*
        package java.util;
        class Scanner{
            Scanner(InputStream s){...}
            int nextInt(){...}
            double nextDouble(){...}
        }


        package java.util;
        class Scanner{
            Scanner(InputStream s){...}
            int nextInt(){...}
            double nextDouble(){...}
        }

        package java.util;
        class Scanner{
            ...
        }























         */





















        Scanner scan = new Scanner(System.in);
        System.out.println("请输入年龄:");
        int age = scan.nextInt();
        System.out.println("年龄为"+age);
    }
}
